/**
 * @file   Msg.java
 * @author Enrique Madrid <emadrid@gmail.com>
 * @date   Mon Jul 16 12:25:29 2007
 * 
 * @brief  Parametros
 * 
 */

package com.myt.matp.core;

public class Msg {

    private int m_Id = 0;
    private int m_WParam = 0;
    private long m_DWParam = 0;
    private Object m_Object = null;

    public Msg() {
    }

    public Msg(int id) {
	setId(id);
    }

    public Msg(Msg msg) {
	set(msg);
    }

    public void setId(int id) {
	m_Id = id;
    }    

    public int getId() {
	return m_Id;
    }

    public void setWParam(int wParam) {
	m_WParam = wParam;
    }

    public int getWParam() {
	return m_WParam;
    }

    public void setDWParam(long dwParam) {
	m_DWParam = dwParam;
    }

    public long getDWParam() {
	return m_DWParam;
    }

    public void setObject(Object object) {
	m_Object = object;
    }

    public Object getObject() {
	return m_Object;
    }

    public void set(final Msg msg) {
	this.m_Id = 0;
	this.m_WParam = 0;
	this.m_DWParam = 0;
	this.m_Object = null;
	
	if (msg != null) {
	    this.m_Id = msg.m_Id;
	    this.m_WParam = msg.m_WParam;
	    this.m_DWParam = msg.m_DWParam;
	    this.m_Object = msg.m_Object;
	}
    }
}
